<script setup>
import { onLaunch, onShow, onHide } from '@dcloudio/uni-app';

// 应用启动时
onLaunch(() => {
	console.log('App Launch');
	
	// 初始化云服务
	if (uniCloud.initSecureNetworkByWeixin) {
		uniCloud.initSecureNetworkByWeixin();
	}
});

onShow(() => {
	console.log('App Show');
});

onHide(() => {
	console.log('App Hide');
});
</script>

<style>
	/*每个页面公共css */
	page {
		font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
		--primary-color: #0066FF;
		--text-color: #333333;
		--light-text-color: #666666;
		--background-color: #F8F8F8;
		--border-color: #EEEEEE;
	}
	
	/* 清除默认按钮样式 */
	button::after {
		border: none;
	}
	
	/* 常用flex布局 */
	.flex-row {
		display: flex;
		flex-direction: row;
	}
	
	.flex-column {
		display: flex;
		flex-direction: column;
	}
	
	.flex-center {
		display: flex;
		justify-content: center;
		align-items: center;
	}
</style>
